package com.star.string;

public class StringBuilderTest {

    public static void main(String[] args) {
        StringBuilder builder = new StringBuilder("A50F01");
        String strTmp;
        strTmp = String.format("%02X", 2);
        builder.append(strTmp, 0, 2);
        strTmp = String.format("%02X", 1);
        builder.append(strTmp, 0, 2);
        strTmp = String.format("%02X", 1);
        builder.append(strTmp, 0, 2);
        //优化zoom变倍速率
        int combineCode2 = 16;
        strTmp = String.format("%X", combineCode2);
        builder.append(strTmp, 0, 1).append("2");
        System.out.println(builder.toString());

    }
}
